﻿using UnityEngine;
using System.Collections;

public class Cubo : MonoBehaviour 
{
	public float timeToAutoDestroy;

	void Update ()
	{
		timeToAutoDestroy -= Time.deltaTime;

		if(timeToAutoDestroy < 0 )
		{
			Destroy(this.gameObject);
		}
	}
}
